<table>
  <tr>
    <th>Street</th>
    <th>Streetnr</th>
    <th>City</th>
    <th>Zip</th>
  </tr>

<% @addresses.each do |address| %>
  <tr>
    <td><%=h address.street %></td>
    <td><%=h address.streetNr %></td>
    <td><%=h address.city %></td>
    <td><%=h address.zip %></td>
    <td class="admin"><%= link_to 'Show', address %></td>
    <td class="admin"><%= link_to 'Edit', edit_address_path(address) %></td>
    <td class="admin"><%= link_to 'Destroy', address, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New address', new_address_path %>